package com.guldan.jaina.provider;

import com.guldan.core.dubbo.client.ResponseDTO;
import com.guldan.core.search.Pagination;
import com.guldan.jaina.dto.citizenbank.CitizenBankDTO;
import com.guldan.jaina.dto.citizenbank.CitizenBankSearchDTO;

/**
 * Created by Silas.
 * Date: 2016/11/7
 * Time: 22:49
 */
public interface ICitizenBankProvider {

    //获取单个居民银行帐号，传入：citizenBankId
    ResponseDTO<CitizenBankDTO> get(Integer citizenBankId);

    //新增/更新单个居民银行帐号，传入：CitizenBankDTO
    ResponseDTO<CitizenBankDTO> save(CitizenBankDTO citizenBankDTO);

    //删除单个居民银行帐号，传入：citizenBankId
    ResponseDTO<Boolean> delete(Integer citizenBankId);

    //分页获取居民银行帐号信息列表，传入：检索DTO
    ResponseDTO<Pagination<CitizenBankDTO>> list(CitizenBankSearchDTO citizenBankSearchDTO);

}
